#include<iostream>
#include<string>
#include"my_vector.h"
using namespace std;

void test_vector1()
{
	lzz::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	v.push_back(6);
	v.push_back(7);
	v.push_back(8);
	v.push_back(9);
	string str("hello world");
	string str1("nihao");
	lzz::vector<int> v2(10,0);
	for (auto x : v2) cout << x << ' ';
	cout << endl;
	v2 = v;
	for (auto x : v2) cout << x << ' ';
	cout << endl;
	v2.pop_back();
	v2.pop_back();
	v2.pop_back();
	for (auto x : v2) cout << x << ' ';
	cout << endl;
}

void test_vector2()
{
	lzz::vector<int> v;
	v.insert(v.begin(), 1);
	v.insert(v.begin(), 2);
	v.insert(v.begin(), 3);
	v.insert(v.begin(), 4);
	v.insert(v.begin(), 5);
	v.insert(v.begin(), 6);
	v.insert(v.begin(), 7);
	v.insert(v.begin(), 8);
	v.insert(v.begin(), 9);
	for (auto e : v)
		cout << e << " ";
	cout << endl;
	v.earse(v.begin());
	v.earse(v.end());
	for (auto x : v) cout << x << " ";
}

void test()
{
	A d;
	A b(d);
}

int main()
{
	//test();
	test_vector2();
	return 0;
}